/*背景板色*/ 
body {
    background-color: #f0f0f0;
    text-align: center;
}
 
h1 {
    color: #2c3e50;
}
 
button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
/*菜单栏*/
.login-container, .register-container {
    max-width: 300px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  form {
    display: flex;
    flex-direction: column;
  }
  
  label {
    margin-top: 10px;
  }
  
  /* 框框 */
  input[type="text"], input[type="password"] {
      padding: 10px;
      margin-top: 5px;
      border: 1px solid #ccc;
      border-radius: 4px;
  }
  
  input[type="text"], input[type="password"], input[type="email"] {
      padding: 10px;
      margin-top: 5px;
      border: 1px solid #ccc;
      border-radius: 4px;
  }
  
  button {
    padding: 10px;
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #45a049;
  }
  
.login-container p {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9em;
  }
  
  .login-container a {
    color: #4CAF50;
    text-decoration: none;
  }
  
  .login-container a:hover {
    text-decoration: underline;
  }

  .register-container a {
    color: #4CAF50;
    text-decoration: none;
  }
  
  .register-container a:hover {
    text-decoration: underline;
  }
/* 滚动容器基础样式 */
.slider {
  width: 100%;
  max-width: 1200px; /* 限制最大宽度 */
  margin: 20px auto; /* 居中显示 */
  position: relative; /* 作为按钮的定位参考 */
  overflow: hidden;
}

/* 图片内容区（控制滚动） */
.slider-inner {
  display: flex;
  transition: transform 0.5s ease; /* 滚动动画过渡 */
}

/* 单张宣传图容器 */
.slide-item {
  flex: 0 0 100%; /* 每张占满容器宽度 */
  position: relative; /* 作为内容的定位参考 */
}

.slide-item img {
  width: 100%;
  height: 400px; /* 固定高度 */
  object-fit: cover; /* 图片填充方式 */
}

/* 图片上的文字和按钮 */
.slide-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.slide-btn {
  padding: 10px 25px;
  font-size: 1.1em;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* 左右切换按钮 */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 1.5em;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 1;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.prev-btn:hover, .next-btn:hover {
  background: rgba(0,0,0,0.8);
}
/*个人中心*/
.profile-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.profile-container h2 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.profile-container button {
    background: #e74c3c;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.profile-container button:hover {
    background: #c0392b;
}